package com.linkhub.oms.admin.modules.system.domain.param;

import cn.hutool.core.lang.RegexPool;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;
import java.io.Serializable;

/**
 * @Description: SystemSignInParam
 * @Author: echo
 * @Date: 2024/3/6 15:23
 * @Version: 1.0
 */
@Data
@ApiModel("SystemSignInParam")
public class SystemSignInParam implements Serializable {

    @ApiModelProperty("邮箱")
    @Pattern(regexp = RegexPool.EMAIL, message = "{validation.email.pattern}")
    private String email;

    @ApiModelProperty("密码")
    @NotBlank(message = "{validation.password.notBlank}")
    private String password;

}
